package com.example.module_home.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_home.R
import com.example.module_home.entity.NoticeEntityItem

class HomeNoticeAdapter :BaseQuickAdapter<NoticeEntityItem,BaseViewHolder>(R.layout.notice_item) {
    override fun convert(holder: BaseViewHolder, item: NoticeEntityItem) {
        val title = holder.getView<TextView>(R.id.notice_title)
        val content = holder.getView<TextView>(R.id.notice_content)
        val time = holder.getView<TextView>(R.id.notice_time)
        title.text=item.title
        content.text=item.content
        time.text=item.publishTime
    }

}